package com.zhongwang.business.module.taskManage.service;

import com.zhongwang.business.module.taskManage.dao.TaskDistributeDao;
import com.zhongwang.business.module.taskManage.model.TaskDistributeModel;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TaskDistributeService {
    @Autowired
    private TaskDistributeDao taskDistributeDao;

    /**
     * 执行添加任务
     * @param model
     * @return
     */
    public Integer insertTaskDistribute(TaskDistributeModel model){
        return taskDistributeDao.insertTaskDistribute(model);
    }
    /**
     * 执行删除任务执行的组
     * @param model
     * @return
     */
    public int updTaskDistribute(TaskDistributeModel model){
        return taskDistributeDao.updTaskDistribute(model);
    }
}
